package com.cmyshare.design.strategyAndFactorySpring;

import java.math.BigDecimal;

/**
 * @version 1.0
 * @Author cmy
 * @Date 2025/10/13 16:20
 * @desc 支付请求实体类
 */

public class PaymentRequest {
    private BigDecimal amount;      // 支付金额
    private String orderId;         // 订单ID
    private String userId;          // 用户ID
    private String clientIp;        // 客户端IP

    // 构造函数、getter和setter
    public PaymentRequest(BigDecimal amount, String orderId) {
        this.amount = amount;
        this.orderId = orderId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }
}